package satir.testcase.command;

import java.io.ByteArrayInputStream;
import java.lang.reflect.Field;

import org.junit.Test;

import satir.SatirGame;
import satir.command.Command;
import satir.command.EnterPlayerNumCmd;
import satir.framework.test.PrivateAccessor;
import junit.framework.TestCase;

public class EnterPlayerNumCmdTest_EnterPlayerNumCmd_1 extends TestCase {

	/**
	 * Sets up the test fixture.
	 * 
	 * Called before every test case method.
	 */
	public void setUp() {
	}

	/**
	 * Tears down the test fixture.
	 * 
	 * Called after every test case method.
	 */
	public void tearDown() {
	}

	
	/**
	 * Step number: 1
	 * Goal: store a SatirGame instance into EnterPlayerNumCmd instance 
	 */
	@Test
	public void testStoreSatirGameInstance() {
		SatirGame mockSatirGame = new SatirGame();
		EnterPlayerNumCmd command = new EnterPlayerNumCmd(mockSatirGame);
		try {
			SatirGame actualResult = (SatirGame)PrivateAccessor.getPrivateField(command ,"satirGame");
			assertEquals(mockSatirGame, actualResult);
		} catch (Exception e) {
			fail("Suberting JAVA Access Protection Failure.");
		}
	}
	
}
